package com.sinosoft.tcmneim.service.impl;

import com.sinosoft.tcmneim.dao.TblDisecorolHrtrsionDao;
import com.sinosoft.tcmneim.dataObject.TblDisecorolHrtrsion;
import com.sinosoft.tcmneim.service.TblDisecorolHrtrsionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TblDisecorolHrtrsionServiceImpl implements TblDisecorolHrtrsionService {
    @Resource
    private TblDisecorolHrtrsionDao tblDisecorolHrtrsionDao;


    @Override
    public List<TblDisecorolHrtrsion> list() {
        return tblDisecorolHrtrsionDao.list();
    }

    @Override
    public List<TblDisecorolHrtrsion> selectByItemCode(String itemCode) {
        return tblDisecorolHrtrsionDao.selectByItemCode(itemCode);
    }

    @Override
    public int insertSelective(TblDisecorolHrtrsion tblDisecorolHrtrsion) {
        return tblDisecorolHrtrsionDao.insert(tblDisecorolHrtrsion);
    }

    @Override
    public int updated(TblDisecorolHrtrsion tblDisecorolHrtrsion) {
        return tblDisecorolHrtrsionDao.updated(tblDisecorolHrtrsion);
    }

    @Override
    public int deleteByItemCode(String itemCode) {
        return tblDisecorolHrtrsionDao.deleteByItemCode(itemCode);
    }
}
